var loaderUtils = require('loader-utils')

module.exports = function(source) {
  let options = loaderUtils.getOptions(this)
  source = source.replace(/<name>/g, options.name || 'unknown')
  
  return source
}